//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package org.come.strength;

import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import org.come.Frame.MsgJframe;
import org.come.Jpanel.MsgJapnel;
import org.come.bean.Skill;
import org.come.strength.JpanelStrengthMain.SkillLabel;
import org.come.until.FormsManagement;

public class MouseListenerStrengthMain implements MouseListener {
	private SkillLabel skillLabel;

	public MouseListenerStrengthMain(SkillLabel skillLabel) {
		this.skillLabel = skillLabel;
	}

	@Override
    public void mouseClicked(MouseEvent e) {
	}

	@Override
    public void mousePressed(MouseEvent e) {
	}

	@Override
    public void mouseReleased(MouseEvent e) {
	}

	@Override
    public void mouseEntered(MouseEvent e) {
		Skill skill = this.skillLabel.getSkill();
		if (skill != null) {
			MsgJframe.getJframe().getJapnel().TYC(skill.getSkillname(), MsgJapnel.StrengthChange(skill.getRemark(), skill, (double)this.skillLabel.getLevel()));
		}

	}

	@Override
    public void mouseExited(MouseEvent e) {
		FormsManagement.HideForm(46);
	}
}
